
<?php
function imprime_celdas() 
{
   include('conexion.php');
    echo "<select multiple name='cargo' id='cargo' >";
      $sql = "select * from mayor";
      $resultado = mysql_query($sql) or die ("Error al cargar los calibres ".mysql_error());
	  
      while ($campo = mysql_fetch_array($resultado)){
		     echo "<option value=$campo[codigo]>$campo[mayo]</option>";
	  }
	 
    echo "</select>";

}
   
   
?>
